package com.yf.dxs.wo.controller;

import com.yf.dxs.wo.entity.WoCardMsgDO;
import com.yf.dxs.wo.redis.RedisMqTemplate;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Resource
    private RedisMqTemplate redisMqTemplate;

    @RequestMapping("/")
    public String index(){
        WoCardMsgDO woCardMsgDO = new WoCardMsgDO();
        redisMqTemplate.sendMsg(woCardMsgDO);
        return "power by yf";
    }

}
